package com.zr.sms.serviceimpl;

import com.zr.sms.dao.CashregisterDao;
import com.zr.sms.dao.GoodsDao;
import com.zr.sms.dao.ShopListDao;
import com.zr.sms.daoimpl.CashregisterDaoImpl;
import com.zr.sms.daoimpl.GoodsDaoimpl;
import com.zr.sms.daoimpl.ShopListDaoImpl;
import com.zr.sms.service.UpdateService;

public class UpdateServiceImpl implements UpdateService{
   GoodsDao goods=new GoodsDaoimpl();
   CashregisterDao cash=new CashregisterDaoImpl();
   ShopListDao shoplist=new ShopListDaoImpl();

	public boolean updataGoods(int gid, int number) {
		// TODO Auto-generated method stub
		return goods.updataGoods(gid, number);
	}


	public boolean addMoney(double totalmoney, int cid) {
		// TODO Auto-generated method stub
		return cash.addMoney(totalmoney, cid);
	}

	
	public boolean cutMoney(double chajia, int cid) {
		// TODO Auto-generated method stub
		return cash.cutMoney(chajia, cid);
	}

	
	public boolean uodateScontentBySid(String scontent,double stotalmoney, int sid) {
		// TODO Auto-generated method stub
		return shoplist.updateScontentBySid(scontent,stotalmoney, sid);
	}

}
